export default {

  defaultVizConfig: {
    "pt": {
      "dataUid": "",
      "dataType": "private",
      "vizConfig": {
        "type": "marker-simple",
        "blendingMode": "src-over",
        "markerColor": "#1220A5",
        "markerSize": 6,
        "markerOpacity": 0.8,
        "outlineColor": "#ffffff",
        "outlineWidth": 1,
        "outlineOpacity": 0.8,
        "labelColor": "#000000",
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 12
      }
    },
    "pl": {
      "dataUid": "",
      "dataType": "private",
      "vizConfig": {
        "type": "polyline-simple",
        "lineColor": "#ED6215",
        "lineOpacity": 0.8,
        "lineWidth": 2,
        "blendingMode": "src-over",
        "labelColor": "#000000",
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 12
      }
    },
    "pg": {
      "dataUid": "",
      "dataType": "private",
      "vizConfig": {
        "type": "polygon-simple",
        "fillColor": "#1CA020",
        "fillOpacity": 0.8,
        "outlineColor": "#ffffff",
        "outlineOpacity": 0.8,
        "outlineWidth": 2,
        "labelColor": "#000000",
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 12
      }
    },
    "mpt": {
      "dataUid": "",
      "dataType": "private",
      "filter": null,
      "vizConfig": {
        "labelField": null,
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 14,
        "labelColor": "#000",
        "markerColor": "#1220A5",
        "markerSize": 5,
        "markerOpacity": 0.8,
        "outlineColor": "#000000",
        "outlineWidth": 1,
        "outlineOpacity": 0.8,
        "type": "marker-simple"
      }
    },
    "mpl": {
      "dataUid": "",
      "dataType": "private",
      "filter": null,
      "vizConfig": {
        "labelField": null,
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 14,
        "labelColor": "#000",
        "lineColor": "#ED6215",
        "lineOpacity": 0.8,
        "lineWidth": 2,
        "type": "polyline-simple"
      }
    },
    "mpg": {
      "dataUid": "",
      "dataType": "private",
      "filter": null,
      "vizConfig": {
        "labelField": null,
        "labelFont": "Microsoft YaHei Regular",
        "labelSize": 14,
        "labelColor": "#000",
        "fillColor": "#1CA020",
        "fillOpacity": 0.8,
        "outlineColor": "#ffffff",
        "outlineOpacity": 0.8,
        "outlineWidth": 2,
        "type": "polygon-simple"
      }
    },

  },

  defaultStyle: {
    "pt": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    },
    "pl": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    },
    "pg": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    },
    "mpt": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    },
    "mpl": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    },
    "mpg": {
      "fillColor": "#000",
      "fillOpacity": 0.8,
      "borderColor": "#fff"
    }
  },


  //   baseMapList: {
  //     auto: {
  //       label: '高德地图',
  //       url: 'http://webrd{s}.is.autonavi.com/appmaptile?size=1&scale=1&style=8&lang=zh_cn&x={x}&y={y}&z={z}',
  //       cluster: ['01', '02', '03', '04'],
  //       thumb: require("static/img/map/map-tpl-amap@2x.png")
  //     },
  //     google: {
  //       label: '谷歌地形',
  //       url: 'http://mt{s}.google.cn/vt/lyrs=t@131,r@227000000&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&scale=2',
  //       cluster: ['0', '1', '2', '3'],
  //       thumb: require("static/img/map/map-tpl-google.jpeg")
  //     },
  //     googleRoad: {
  //       label: '谷歌街道',
  //       url: 'http://mt{s}.google.cn/vt/lyrs=m&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&scale=2',
  //       cluster: ['0', '1', '2', '3'],
  //       thumb: require("static/img/map/map-tpl-google-road.png")
  //     },
  //     googleImage: {
  //       label: '谷歌影像',
  //       url: 'http://mt{s}.google.cn/vt/lyrs=s&hl=zh-CN&gl=cn&x={x}&y={y}&z={z}&scale=2',
  //       cluster: ['0', '1', '2', '3'],
  //       thumb: require("static/img/map/map-tpl-google-image.jpeg")
  //     },
  //     arcgisOnline: {
  //       label: 'arcgisOnline',
  //       url: 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
  //       cluster: undefined,
  //       thumb: require("static/img/map/map-tpl-arcgisonline@2x.png")
  //     },
  //     stamenToner: {
  //       label: '黑白',
  //       url: 'http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png',
  //       cluster: ['a', 'b', 'c', 'd'],
  //       thumb: require("static/img/map/map-tpl-toner.png")
  //     },
  //     stamenWaterColor: {
  //       label: '水彩',
  //       url: 'http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png',
  //       cluster: ['a', 'b', 'c', 'd'],
  //       thumb: require("static/img/map/map-tpl-water-color.jpg")
  //     },
  //     osm: {
  //       label: 'osm',
  //       url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png',
  //       cluster: ['a', 'b', 'c'],
  //       thumb: require("static/img/map/map-tpl-osm@2x.png")
  //     },
  //   },

  uploadErr: {
    '451': {
      type: 'UPLOAD',
      msg: '上传文件失败',
      tips: [
        '请检查网络连接，若网络连接不正常，修复后重新上传',
        '如果上述方法没能解决问题，请参考帮助文档，或者联系极海客服'
      ]
    },
    '500': {
      type: 'UNKNOWN',
      msg: '未知错误',
      tips: []
    },
    '551': {
      type: 'ENCODING',
      msg: '编码不正确',
      tips: [
        '预览页面中修改编码，当显示内容不再乱码，继续上传',
        '使用文本编辑器打开文件，使用UTF-8或GBK保存文件，继续上传',
      ]
    },
    '5511': {
      type: 'ENCODING',
      msg: '未知编码',
      tips: [
        '数据存在未知编码内容，请修改内容编码，继续上传',
      ]
    },
    '552': {
      type: 'COORDINATE',
      msg: '坐标不合法',
      tips: [
        '使用QGIS或ArcGIS等GIS软件打开，修正错误坐标，继续上传',
      ]
    },
    '553': {
      type: 'TIME_FORMAT',
      msg: '日期不合法',
      tips: [
        '可能是日期超限，如2017-2-29，修改超限日期，然后上传',
      ]
    },
    '554': {
      type: 'NETWORK',
      msg: '获取预览数据失败',
      tips: [
        '如果上传的是CSV或Excel文件，请确认用Excel软件能正常打开',
        '如果上传的是Shape File文件，请确认压缩文件中至少包含.shp、.shx和.dbf文件',
      ]
    },
    '555': {
      type: 'FILE_NOT_EXIST',
      msg: '文件缺失',
      tips: [
        '如上传文件为压缩成zip格式的shapefile，可能是文件中缺少.dbf文件',
      ]
    },
    '556': {
      type: 'UNPACK',
      msg: '解压缩错误',
      tips: [
        '该错误一般是上传shapefile时出现，原因可能是使用了不常用的文件压缩软件，可尝试使用系统自带压缩软件压缩后，重新上传',
      ]
    },
    '557': {
      type: 'METADATA',
      msg: '获取元数据错误',
      tips: [
        '检查文件是否是有效的空间数据',
      ]
    },
    '558': {
      type: 'SRS_TRANSFORM',
      msg: '坐标准换错误',
      tips: [
        '坐标超出正常范围，使用QGIS或ArcGIS等GIS软件打开，修正错误坐标后，继续上传',
      ]
    },
    '559': {
      type: 'IMPORT_DB',
      msg: '入库错误',
      tips: [
        '检查预览阶段数据字段名称和内容是否乱码，如果乱码，请调节编码至内容正常后上传',
      ]
    }

  }
}
